package com.hcb.micro.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ProvinceMapper;
import com.hcb.micro.dto.Province;
import com.hcb.micro.service.IProvinceService;

@Service("ProvinceService")
public class ProvinceServiceImpl implements IProvinceService {

	@Autowired
	ProvinceMapper provinceMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return provinceMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Province record) {
		return provinceMapper.insert(record);
	}

	@Override
	public int insertSelective(Province record) {
		return provinceMapper.insertSelective(record);
	}

	@Override
	public Province selectByPrimaryKey(Integer id) {
		return provinceMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Province record) {
		return provinceMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Province record) {
		return provinceMapper.updateByPrimaryKey(record);
	}

	@Override
	public Province selectByProvinceId(Integer provinceId) {
		return provinceMapper.selectByProvinceId(provinceId);
	}

	@Override
	public List<Province> selectAll() {
		return provinceMapper.selectAll();
	}

}
